﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace SoulKeeper
{
	public class Credits
	{
        GameWindow Window;
        ContentManager Content;
        //SpriteFont arial36;
        //StaticObject buttonStart;
      

        public Credits(ContentManager content, GameWindow Window)
        {
            this.Content = content;
            this.Window = Window;
           // buttonStart = new StaticObject(content.Load<Texture2D>("bg/INTRO/buttonStart"), new Vector2(150, 380), Window);

            
            //arial36 = Content.Load<SpriteFont>("Arial36");
        }

        public void Update()
        {
            if ((Engine.keyboard.IsKeyDown(Keys.Space)) && !(Engine.last_keyboard.IsKeyDown(Keys.Space)))
            {
                Engine.current_state = Engine.GameStates.MENU;
            }
        }//Update

        public void Draw()
        {
            //Engine.spriteBatch.DrawString(arial36, "INTRO", new Vector2(Window.ClientBounds.Width / 2, Window.ClientBounds.Height / 2), Color.White);
            Engine.spriteBatch.Draw(Content.Load<Texture2D>("bg/CREDITS/credits"), new Rectangle(0, 0, 800, 640), Color.White);
           // buttonStart.Draw(Engine.gameTime, Engine.spriteBatch);
        }
	}
}
